package com.joinway.framework.admin.core.bean;

import com.joinway.framework.bean.BaseBean;

public class FileImportContext extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	protected int importedCount;
	
	protected int ignoredCount;

	protected String message;

	public int getImportedCount() {
		return importedCount;
	}

	public void setImportedCount(int importedCount) {
		this.importedCount = importedCount;
	}

	public int getIgnoredCount() {
		return ignoredCount;
	}

	public void setIgnoredCount(int ignoredCount) {
		this.ignoredCount = ignoredCount;
	}

	public void addImportedCount(){
		this.importedCount++;
	}
	
	public void addIgnoreCount(){
		this.ignoredCount++;
	}
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public void clear(){
		this.importedCount = 0;
		this.ignoredCount = 0;
		this.message = "";
	}
}
